<%@ page import="edu.ccut.saturn.css.*" buffer="none"%>
<%@ page contentType="text/css"%>
<%@ page
	import="edu.ccut.saturn.web.SaturnDisplayManager,edu.ccut.saturn.component.SaturnData"%>
<%
	response.setContentType("text/css");
	CssProvider provider = null;

	SaturnData user = (SaturnData) session
			.getAttribute("__SATURN_AUTORITY_USER__");
	
	if (user != null) {
		String userSerialno = user.getString("id");//get userid
		provider = SaturnDisplayManager.getInstance().getUserProvider(
		userSerialno);
	}
    //modify by yanshuang begin
	if (provider == null) {
		provider = SaturnDisplayManager.getInstance().getDefaultCssProvider();
	}
//	session.setAttribute("csskey", "blue");
//	if (provider == null) {
//		if(session.getAttribute("csskey") == null || "".equals(session.getAttribute("csskey"))){
//			provider = SaturnDisplayManager.getInstance().getDefaultCssProvider();
//		} else {
//			provider = SaturnDisplayManager.getInstance().getCssProvider(session.getAttribute("csskey").toString());
//		}
//	}
	//modify by yanshuang end
%>
<%=provider.getAllStyle()%>